#!/bin/sh

EXECUTABLE_FILE=gtk_downloader
CURRENT_PATH=`pwd`

BUILD_DIR=$CURRENT_PATH/build

echo $BUILD_DIR
mkdir -p $BUILD_DIR

build_gtk_downloder(){
    cd $BUILD_DIR
    echo "build_gtk_downloder"

    cmake ./..
    make

    #移动执行文件到上一级
    mv $EXECUTABLE_FILE ../
    cd ..
}

build_gtk_downloder
